// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** startCamera POST /api/cameras/${param0}/start */
export async function startCameraUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.startCameraUsingPOSTParams,
  options?: { [key: string]: any }
) {
  const { cameraId: param0, ...queryParams } = params
  return request<Record<string, any>>(`/api/cameras/${param0}/start`, {
    method: 'POST',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  })
}

/** stopCamera POST /api/cameras/${param0}/stop */
export async function stopCameraUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.stopCameraUsingPOSTParams,
  options?: { [key: string]: any }
) {
  const { cameraId: param0, ...queryParams } = params
  return request<Record<string, any>>(`/api/cameras/${param0}/stop`, {
    method: 'POST',
    params: { ...queryParams },
    ...(options || {}),
  })
}
